#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
	int a=1,b=0;
	for (;a <= 101; a++)
	{
		if (a % 10 == 9 || a / 10 == 9)
			b++;
	}
	printf("%d", b);
}











